package com.fyy;

import com.balance.config.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author fyy
 * @Description
 * @Date 2020/6/1 10:41
 */
@SpringBootApplication
@EnableEurekaClient
//在启动时加载我们自定义的负载均衡组件,自定义组件必须是@Configuration,他会替换已有的组件，从而使用我们自定义的负载均衡组件
//@RibbonClient(name = "peo_user",configuration = MyRule.class)
public class ConApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConApplication.class,args);
    }

}
